import 'package:flutter/material.dart';
import 'package:hx_im_plugin/hx_im_plugin.dart';
import 'package:hx_im_plugin_example/hq_im_ui/widgets/hq_common_widgets.dart';
import 'package:hx_im_plugin_example/hq_im_ui/widgets/wx_expression.dart';

class HqChatTextBubble extends StatelessWidget {

  final EMTextMessageBody body;
  HqChatTextBubble(this.body);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(
        left: sWidth(13),
        right: sWidth(13),
        top: sHeight(9),
        bottom: sHeight(9),
      ),
      child: ExpressionText(
        body.content,
        TextStyle(
          color: Color.fromRGBO(51, 51, 51, 1),
          fontSize: sFontSize(17),
        ),
      ),
    );
  }
}
